const http = require('http')

const server = http.createServer()

server.on('request', (request, response) => {
  if (request.url === '/') {
    response.write('hello ')
    response.end('world')
  }
})

server.listen(3000, () => {
  console.log('server is running...');
})